package com.example.demo.service.impl;

import com.example.demo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
	
 	@Autowired
    RestTemplate restTemplate;

    public List<String> getOrderMemberr() {
        return restTemplate.getForObject("http://ribbon1-server/list", List.class);
    }

}
